package example12_10;


public class Example12_10 {
    public static void main(String[] args) {
        CommonThread mc=new CommonThread();
        DaemonThread md=new DaemonThread();
        Thread tc=new Thread(mc);
        tc.setName("用户线程");
        Thread td=new Thread(md);
        td.setName("守护线程");
        td.setDaemon(true);
        tc.start();
        td.start();

    }
}
